using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Purview_Page - 权限详细 - 对象继承类
    /// </summary>
    [MetadataType(typeof(PurviewPageValidaTion))]
    public class PurviewPage : IPurviewPage<PurviewPage>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class PurviewPageValidaTion
       {

     

        /// <summary>
        /// 权限ID
        /// </summary>
        [Display(Name ="权限ID")]
        [Required]
        [StringLength(36)]
        public String PwId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 权限名称
        /// </summary>
        [Display(Name ="权限名称")]
        [Required]
        [StringLength(36)]
        public String Name
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 权限路径
        /// </summary>
        [Display(Name ="权限路径")]
        [StringLength(200)]
        public String Path
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否开启
        /// </summary>
        [Display(Name ="是否开启")]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsOpen
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 权限类别
        /// </summary>
        [Display(Name ="权限类别")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.PurviewPage.Type Type
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 权限组
        /// </summary>
        [Display(Name ="权限组")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.PurviewPage.PurviewEnum PurviewEnum
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 说明
        /// </summary>
        [Display(Name ="说明")]
        [StringLength(200)]
        public String Detailed
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
